import {
    createRouter,
    createWebHashHistory
} from "vue-router";

const foo = () => import("../components/foo.vue")
const login = () => import("../components/login.vue")

const history = createWebHashHistory();
const routes = [
    {
        path: "/login",
        name: "login",
        component: login
    },
    {
        path: "/foo",
        name: "foo",
        component: foo
    }
]

const router = createRouter({
    history,
    routes
});
export default router;